ia.Point Class
Point object.
Constructor
ia.Point
(
-
[x=0]
-
[y=0]
Parameters:
-
[x=0]
Number optionalThe x coordinate of the origin.
-
[y=0]
Number optionalThe y coordinate of the origin.
Methods
subtract
(
ia.Point
-
p
Subtracts another point from this one.
Parameters:
-
p
ia.PointThe point to subtract.
Returns:
ia.Point:
A new point.
toString
()
String
Get a simple text representation of this object.
Returns:
String:
A text String.
Properties
x
Number
The x coord.
Default: 0
y
Number
The y coord.
Default: 0